import {requestClient} from '#/api/request';

export async function findDeptList(params) {
    return requestClient.get('/sys/dept/list', {params});
}

export async function findDeptListTree(params) {
    return requestClient.get('/sys/dept/list/tree', {params});
}

export async function createDeptInfo(data) {
    return requestClient.post('/sys/dept/create', data);
}

export async function updateDeptInfo(data) {
    return requestClient.put('/sys/dept/update', data);
}

export async function removeDeptInfo(id) {
    return requestClient.delete('/sys/dept/remove', {params: {id}});
}